import request from '@/utils/request'

// 查询保养订单列表
export function listMaintenanceOrder(query) {
  return request({
    url: '/orderManagement/maintenanceOrder/list',
    method: 'get',
    params: query
  })
}

// 查询保养订单详细
export function getMaintenanceOrder(orderId) {
  return request({
    url: '/orderManagement/maintenanceOrder/' + orderId,
    method: 'get'
  })
}

// 新增保养订单
export function addMaintenanceOrder(data) {
  return request({
    url: '/orderManagement/maintenanceOrder',
    method: 'post',
    data: data
  })
}

// 修改保养订单
export function updateMaintenanceOrder(data) {
  return request({
    url: '/orderManagement/maintenanceOrder',
    method: 'put',
    data: data
  })
}

// 删除保养订单
export function delMaintenanceOrder(orderId) {
  return request({
    url: '/orderManagement/maintenanceOrder/' + orderId,
    method: 'delete'
  })
}
